package com.haoze.nurseapp.dao;


import com.haoze.common.mapper.MyMapper;
import com.haoze.nurseapp.dto.EmrTemplateDTO;
import com.haoze.nurseapp.model.NodeEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author zh
 */
public interface NodeMapper extends MyMapper<NodeEntity> {

    List<NodeEntity> queryNodeList(Map params);

    NodeEntity getNodeById(@Param("nodeId") String nodeId);

    List<EmrTemplateDTO> listTplByDeptId(@Param("userId") String userId, @Param("tplName") String tplName);

    List<Map<String, Object>> listTaskCtl();

    List<Map<String, Object>> listFirstTrees(@Param("userId") String userId, @Param("pid") String pid);

    List<Map<String, Object>> searchTpl(@Param("userId") String userId, @Param("tplName") String tplName);

    List<Map<String, String>> queryAllNode(String queryString);
    Map<String, String> getTplByTaskNode(@Param("taskNodeId") String taskNodeId);

    int existsNodeBindCtl(@Param("ctlId") String ctlId);
}